package com.usian.wemedia.service;

import com.usian.common.dtos.PageResult;
import com.usian.model.media.dtos.WmMaterialDto;
import com.usian.wemedia.entity.WmMaterial;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 自媒体图文素材信息表 服务类
 * </p>
 *
 * @author usian
 * @since 2022-07-07
 */
public interface IWmMaterialService extends IService<WmMaterial> {

    String uploadPic(MultipartFile file);

    PageResult<WmMaterial> findByPage(WmMaterialDto dto);

    void updateCollect(Integer id, boolean isCollection);

    void delPicture(Integer id);
}
